<!doctype html>
<html lang="zh-Hans">

<head>
    <meta charset="utf-8">
    <meta name="author" content="Fresns" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="generator" content="Bootstrap 5">
    <title>列表模块介绍</title>
    <link rel="stylesheet" href="../../assets/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../assets/css/bootstrap-icons.css">
    <link rel="stylesheet" href="../../assets/css/fresns.css">
    <style>
        .bg-secondary {
            background-color: #F0F2F5!important;
        }
        .bg-light {
            background-color: #ffffff!important;
        }
    </style>
</head>

<body>
    <!--页头-->
    <header>
        <div class="text-center mt-5"><img src="../../assets/images/fresns-icon.png" height="80"></div>
    </header>

    <div class="container-fluid mb-5">
        <div class="text-center my-5">
            <div class="text-center mt-3">
                <div class="btn-group">
                    <a href="../style/implant.html" class="btn btn-outline-primary">样式</a>
                    <a href="../code/implant.html" class="btn btn-outline-primary">结构</a>
                    <a href="implant.html" class="btn btn-outline-primary active">说明</a>
                </div>
            </div>
        </div>
        <ul class="nav nav-tabs justify-content-center">
            <li class="nav-item"><a class="nav-link" href="../index.html">首页</a></li>
            <li class="nav-item"><a class="nav-link" href="member.html">成员列表</a></li>
            <li class="nav-item"><a class="nav-link" href="group.html">小组列表</a></li>
            <li class="nav-item"><a class="nav-link" href="hashtag.html">话题列表</a></li>
            <li class="nav-item"><a class="nav-link" href="post.html">帖子列表</a></li>
            <li class="nav-item"><a class="nav-link" href="comment.html">评论列表</a></li>
            <li class="nav-item"><a class="nav-link" href="extend.html">扩展内容模板</a></li>
            <li class="nav-item"><a class="nav-link active" href="implant.html">植入内容模板</a></li>
        </ul>
    </div>

    <div class="container-md clearfix">
        <div class="position-relative shadow-sm p-5 mb-5 bg-body rounded">
            <div class="position-absolute top-0 start-0"><span class="badge bg-warning text-dark">植入内容模板 &lt;template name="implant"&gt;</span></div>
            <div class="position-absolute top-0 end-0"><span class="badge bg-secondary text-dark">获取帖子[列表] /api/fresns/post/lists<br>获取帖子关注的[列表] /api/fresns/post/follows<br>获取帖子附近的[列表] /api/fresns/post/nearbys<br>获取评论[列表] /api/fresns/comment/lists</span></div>
            <p>帖子列表或评论列表，内容参数和正常内容一样，但是多一组 implantSetting 参数</p>
            <p>根据 implantSetting > template 参数，决定采用哪个展示界面</p>
            <p>根据 implantSetting > position 参杂，决定插入在正常帖子列表中哪个位置</p>
            <p>根据 implantSetting > pageType 参杂，决定链接方式</p>
            <span class="badge bg-success me-2 mb-2">template</span>
            <span class="badge bg-success me-2 mb-2">name</span>
            <span class="badge bg-success me-2 mb-2">position</span>
            <!--打开方式 1-->
            <div class="position-relative p-3 mt-3 mb-3 bg-secondary text-dark">
                <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                <span class="badge bg-primary mt-3 me-2">pageType = 1</span>
                <div class="position-relative p-3 mt-3 mb-3 bg-light text-dark">
                    <div class="position-absolute top-0 start-0"><span class="badge bg-info text-dark">陈述语句</span></div>
                    <span class="badge bg-primary mt-3 me-2">pageSupport = 1</span>
                    <span class="badge bg-success me-2 mb-2">pageTarget</span>
                    <span class="badge bg-success me-2 mb-2">pageValue</span><br>
                    <span>pageTarget=1 网页端采用模态框 iframe 方式打开，移动端采用 WebView 打开</span><br>
                    <span>pageTarget=2 网页端新窗口打开，移动端采用 WebView 打开</span>
                    <hr>
                    <span class="badge bg-primary mt-3 me-2">pageSupport = 2</span>
                    <span class="badge bg-success me-2 mb-2">pageTarget</span>
                    <span class="badge bg-success me-2 mb-2">pageValue</span>
                    <span>网页端提示只能在移动应用中打开，移动端采用 uni 原生小程序打开</span>
                    <hr>
                    <span class="badge bg-primary mt-3 me-2">pageSupport = 3</span>
                    <span class="badge bg-success me-2 mb-2">pageTarget</span>
                    <span class="badge bg-success me-2 mb-2">pageValue</span><br>
                    <span>pageTarget=1 网页端采用模态框 iframe 方式打开，移动端优先采用 uni 原生小程序打开，如果移动端没有集成小程序 SDK，则采用 WebView 打开</span><br>
                    <span>pageTarget=2 网页端新窗口打开，移动端优先采用 uni 原生小程序打开，如果移动端没有集成小程序 SDK，则采用 WebView 打开</span>
                </div>
                <hr>
                <span class="badge bg-primary me-2">pageType = 2-5</span>
                <span class="badge bg-success me-2 mb-2">pageTarget</span>
                <span class="badge bg-success me-2 mb-2">pageValue</span>
                <span>主程序内容页面，原生方式打开（网页端则是跳到对应页面，移动端则是原生跳转到对应页面）</span>
                <hr>
                <span class="badge bg-primary me-2">pageType = 6</span>
                <span class="badge bg-success me-2 mb-2">pageTarget</span>
                <span class="badge bg-success me-2 mb-2">pageValue</span><br>
                <span>pageTarget=1 网页端采用模态框 iframe 方式打开，移动端采用 WebView 打开</span><br>
                <span>pageTarget=2 网页端新窗口打开，移动端采用 WebView 打开</span>
            </div>
        </div>
    </div>

    <footer class="text-center" style="margin-top:100px;">
        <div><img src="../../assets/images/fresns-logo.png" height="30"></div>
        <p class="mt-3 mb-5"><a href="https://tangjie.me" target="_blank">唐杰出品</a></p>
    </footer>

    <script src="../../assets/javascript/bootstrap.bundle.min.js"></script>
    <script src="../../assets/javascript/fresns.js"></script>
</body>

</html>